<script setup>
import { onLaunch } from '@dcloudio/uni-app';
import utils from '@/utils/utils.js';
import { useLoginStore } from '@/store/login.js';
import useWxConfig from '@/hooks/useWxConfig';
const store = useLoginStore();
const { getSignature } = useWxConfig(); // 获取签名
onLaunch(() => {
	// #ifdef MP-WEIXIN
	utils.getLatestVersion();
	// #endif
	// #ifdef H5
	getSignature();
	// #endif
	uni.$on('showLogin', () => {
		store.showLogin();
	});
	uni.$on('hideLogin', () => {
		store.hideLogin();
	});
});
</script>

<style lang="scss">
@import '@/uni_modules/uview-plus/index.scss';
@import 'tailwindcss/base';
@import 'tailwindcss/utilities';
page,
view,
text,
scroll-view {
	/* #ifdef H5 */
	--window-bottom: calc(44px + env(safe-area-inset-bottom));
	/* #endif */
	box-sizing: border-box !important;
}
image {
	display: block !important;
}
</style>
